home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amoszine 4
/
Amoszine 4 (Disk 2 of 3).adf
/
Intuition_Procs
/
intui.lha
/
_PRINTITEXT.Amos
/
_PRINTITEXT.amosSourceCode
Wrap
AMOS Source Code
|
1992-02-26
|
991b
|
28 lines
Procedure _PRINTITEXT[_IS,X,Y,F,B,M,X1,Y1,W,A$,N]
A$=A$+Chr$(0)
Reserve As Work 10,20
R=Start(10)
Poke R,F : Inc R : Rem -- pen colour
Poke R,B : Inc R : Rem -- background colour
Doke R,M : Add R,2 : Rem -- Drawing mode (JAM1,JAM2)
Doke R,X1 : Add R,2 : Rem -- offset from left
Doke R,Y1 : Add R,2 : Rem -- offset from top
Loke R,W : Add R,4 : Rem -- pointer to font description
Loke R,Varptr(A$) : Add R,4 : Rem -- pointer to text string (NULL ternimated)
Loke R,N : Rem -- pointer to next text structure
Areg(0)=_IS+84 : Rem -- Rastport in A0
Areg(1)=Start(10) : Rem -- Address of text structure:
Dreg(0)=X : Rem -- X position:
Dreg(1)=Y : Rem -- Y position:
NULL=Intcall(-216)
Erase 10
End Proc